package com.gable.report.model;

import java.io.Serializable;

/**
 * 类说明：用户模块实体类
 * 创建时间：2016-08-16
 * @author 乔春峰
 */
public class User implements Serializable{
	
	private Long id;			// 主键ID
	
	private String userName;	// 账号
	
	private String password;	// 密码
	
	private String email;		// 邮箱
	
	private String phone;		// 电话
	
	private String roleId;		// 角色ID t_sys_role(外键)
	
	private Long engineerHospitalId;	// 驻场工程师
	
	private Long hospitalId;	// 医院ID
	
	private Long serviceProviderId;	// 服务商ID
	
	private String name;		// 姓名
	
	private String departmentId;// 科室ID t_hospital_department(外键)
	
	private String headPhoto;	// 头像
	
	private String loginTime;	// 上次登录时间
	
	private String loginIp;		// 上次登录Ip
	
	private String token;		// 手机token
	
	private String createTime;	// 创建时间
	
	private long createperson;// 创建人
	
	private String updateTime;	// 更新时间
	
	private String updatePerson;// 更新人
	
	private Long status;		// 状态t_sys_items
	
	//=====================================附加参数==============================//
	private String role;		// 角色名称
	
	private String department;	// 科室名称
	
	private Long tag;			// 角色标签
	
	private String hospital;	// 医院名称
	
	private String serviceProvider;	// 服务商名称
	
	private String secretKey;    ///授权id
	
	public String getSecretKey() {
		return secretKey;
	}

	public void setSecretKey(String secretKey) {
		this.secretKey = secretKey;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(String departmentId) {
		this.departmentId = departmentId;
	}

	public String getHeadPhoto() {
		return headPhoto;
	}

	public void setHeadPhoto(String headPhoto) {
		this.headPhoto = headPhoto;
	}

	public String getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public long getCreateperson() {
		return createperson;
	}

	public void setCreateperson(long createperson) {
		this.createperson = createperson;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdatePerson() {
		return updatePerson;
	}

	public void setUpdatePerson(String updatePerson) {
		this.updatePerson = updatePerson;
	}

	public Long getStatus() {
		return status;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public Long getHospitalId() {
		return hospitalId;
	}

	public void setHospitalId(Long hospitalId) {
		this.hospitalId = hospitalId;
	}

	public Long getServiceProviderId() {
		return serviceProviderId;
	}

	public void setServiceProviderId(Long serviceProviderId) {
		this.serviceProviderId = serviceProviderId;
	}

	public Long getTag() {
		return tag;
	}

	public void setTag(Long tag) {
		this.tag = tag;
	}
	
	public Long getEngineerHospitalId() {
		return engineerHospitalId;
	}

	public void setEngineerHospitalId(Long engineerHospitalId) {
		this.engineerHospitalId = engineerHospitalId;
	}
	
	public String getHospital() {
		return hospital;
	}

	public void setHospital(String hospital) {
		this.hospital = hospital;
	}

	public String getServiceProvider() {
		return serviceProvider;
	}

	public void setServiceProvider(String serviceProvider) {
		this.serviceProvider = serviceProvider;
	}

	public User(Long id, String userName, String password, String email, String phone, String roleId, Long hospitalId,
				Long serviceProviderId, String name, String departmentId, String headPhoto, String loginTime,
				String loginIp, String token, String createTime, long createperson, String updateTime, String updatePerson,
				Long status, String role, String department, Long tag) {
		super();
		this.id = id;
		this.userName = userName;
		this.password = password;
		this.email = email;
		this.phone = phone;
		this.roleId = roleId;
		this.hospitalId = hospitalId;
		this.serviceProviderId = serviceProviderId;
		this.name = name;
		this.departmentId = departmentId;
		this.headPhoto = headPhoto;
		this.loginTime = loginTime;
		this.loginIp = loginIp;
		this.token = token;
		this.createTime = createTime;
		this.createperson = createperson;
		this.updateTime = updateTime;
		this.updatePerson = updatePerson;
		this.status = status;
		this.role = role;
		this.department = department;
		this.tag = tag;
	}

	public User() {
		super();
		// TODO Auto-generated constructor stub
	}

}

